import Layout from '@/views/layout.vue'
export const users = {
    path: 'users',
    name: 'users',
    component: Layout,
    redirect: '/users/userslist',
    meta: {
        title: '用户管理',
        icon: 'el-icon-s-home'
    },
    children: [
        {
            path: 'userslist',
            name: 'userslist',
            component: () => import('@/views/users/index.vue'),
            meta: {
                title: '用户管理',
                icon: 'fa fa-cubes'
            }
        },
        {
            // 新增用户
            path: 'adduser',
            name: 'adduser',
            component: () => import('@/views/addUsers/index.vue'),
            meta: {
                title: '新增用户',
                icon: 'fa fa-cubes'
            }
        },
        {
            // 修改用户
            path: 'editoruser/:id',
            name: 'editoruser',
            component: () => import('@/views/editorUsers/index.vue'),
            meta: {
                title: '修改用户',
                icon: 'fa fa-cubes'
            }
        },
        {
            // 个人中心
            path: 'userCenter/:id',
            name: 'userCenter',
            component: () => import('@/views/userCenter/index.vue'),
            meta: {
                title: '个人中心',
                icon: 'fa fa-cubes'
            }
        }
    ]
}
